package cn.itsource.org.service.impl;

import cn.itsource.basic.service.impl.BaseServiceImpl;
import cn.itsource.basic.util.PageList;
import cn.itsource.org.domain.Employee;
import cn.itsource.org.mapper.EmployeeMapper;
import cn.itsource.org.query.EmployeeQuery;
import cn.itsource.org.service.IEmployeeService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 万能键 alt + enter
 */
@Service //交给spring管理
public class EmployeeServiceImpl  extends BaseServiceImpl<Employee,EmployeeQuery> implements IEmployeeService {

    /**
     * 注入mapper层对象
     */
    @Autowired
    private EmployeeMapper mapper;


    @Override
    public List<Employee> findManagers() {
        //调用
        return mapper.findManagers();
    }

}
